package com.rzj.book.en;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orders {

    public enum PROCUREMENT {
        STATE_CREATE("未审核"), STATE_CHECK("已审核"), STATE_START("已确认"), STATE_END("已入库");
        private String desc;

        private PROCUREMENT(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum Type {
        TYPE_IN("采购"), TYPE_OUT("销售"),SUPPLIER("供应商"), CUSTOMER ("客户");
        private String desc;

        private Type(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum SALES{
        STATE_NOT_OUT("未出库"), STATE_OUT("已出库");
        private String desc;

        private SALES(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    private Long uuid;//编号

    private Date createtime;//生成日期

    private Date checktime;//审核日期

    private Date starttime;//确认日期

    private Date endtime;//入库或出库日期

    private Type type;//1:采购 2:销售

    private Long creater;//下单员

    private Long checker;//审核员

    private Long starter;//采购员

    private Long ender;//库管员

    private Double totalmoney;//合计金额

    private PROCUREMENT state;//采购: 0:未审核 1:已审核, 2:已确认, 3:已入库；

    private SALES sales;  //销售：0:未出库 1:已出库

    private Long waybillsn;//运单号

    // 配置订单项的集合
    private List<OrderItem> orderItems = new ArrayList<OrderItem>();

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }


    public Long getUuid() {
        return uuid;
    }

    public void setUuid(Long uuid) {
        this.uuid = uuid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getChecktime() {
        return checktime;
    }

    public void setChecktime(Date checktime) {
        this.checktime = checktime;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Long getCreater() {
        return creater;
    }

    public void setCreater(Long creater) {
        this.creater = creater;
    }

    public Long getChecker() {
        return checker;
    }

    public void setChecker(Long checker) {
        this.checker = checker;
    }

    public Long getStarter() {
        return starter;
    }

    public void setStarter(Long starter) {
        this.starter = starter;
    }

    public Long getEnder() {
        return ender;
    }

    public void setEnder(Long ender) {
        this.ender = ender;
    }

    public Double getTotalmoney() {
        return totalmoney;
    }

    public void setTotalmoney(Double totalmoney) {
        this.totalmoney = totalmoney;
    }

    public PROCUREMENT getState() {
        return state;
    }

    public void setState(PROCUREMENT state) {
        this.state = state;
    }

    public SALES getSales() {
        return sales;
    }

    public void setSales(SALES sales) {
        this.sales = sales;
    }

    public Long getWaybillsn() {
        return waybillsn;
    }

    public void setWaybillsn(Long waybillsn) {
        this.waybillsn = waybillsn;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }
}
